package com.energy.analysis.sys.entity;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.energy.analysis.comm.base.BaseEntity;

/**
 * @ClassName: Role
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author A18ccms a18ccms_gmail_com
 * @date 2015年9月14日 下午7:34:44
 * 
 */
public class Role extends BaseEntity {

	/**
	 * serialVersionUID:TODO(用一句话描述这个变量表示什么).
	 * 
	 * @since JDK 1.8
	 */
	private static final long serialVersionUID = 1L;
	private Integer roleId;
	private String roleDes;
	private String roleName;
	private String roleType;
	private String roleSts;
	private String rmk;
	private String mercCd;
	 
	
	/** 对应菜单set */
	private Set<String> menuItems = new HashSet<String>(0);
	/** 对应菜单set */
	private List<MenuItem> menuItemList = new ArrayList<MenuItem>(0);

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getRoleDes() {
		return roleDes;
	}

	public void setRoleDes(String roleDes) {
		this.roleDes = roleDes;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleSts() {
		return roleSts;
	}

	public void setRoleSts(String roleSts) {
		this.roleSts = roleSts;
	}

	public Set<String> getMenuItems() {
		return menuItems;
	}

	public void setMenuItems(Set<String> menuItems) {
		this.menuItems = menuItems;
	}

	public List<MenuItem> getMenuItemList() {
		return menuItemList;
	}

	public void setMenuItemList(List<MenuItem> menuItemList) {
		this.menuItemList = menuItemList;
	}

	public String getRmk() {
		return rmk;
	}

	public void setRmk(String rmk) {
		this.rmk = rmk;
	}

	/**
	 * @return roleType
	 */
	public String getRoleType() {
		return roleType;
	}

	/**
	 * @param roleType
	 *            要设置的 roleType
	 */
	public void setRoleType(String roleType) {
		this.roleType = roleType;
	}


	public String getMercCd() {
		return mercCd;
	}

	public void setMercCd(String mercCd) {
		this.mercCd = mercCd;
	}


	/*
	 * (非 Javadoc) <p>Title: toString</p> <p>Description: </p>
	 * 
	 * @return
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Role [roleId=");
		builder.append(roleId);
		builder.append(", roleDes=");
		builder.append(roleDes);
		builder.append(", roleName=");
		builder.append(roleName);
		builder.append(", roleType=");
		builder.append(roleType);
		builder.append(", roleSts=");
		builder.append(roleSts);
		builder.append(", rmk=");
		builder.append(rmk);
		builder.append(", menuItems=");
		builder.append(menuItems);
		builder.append(", menuItemList=");
		builder.append(menuItemList);
		builder.append("]");
		return builder.toString();
	}
}